﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinFormsApp1
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            int num = 0;
            double t = double.Parse(textBox3.Text);
            for(int i=0; ;i++)
            {
                t *= 2;
                num++;
                if(t>=8848)
                {
                    break;
                }
            }
            textBox1 .Text = num.ToString();
            textBox2 .Text = t.ToString();
        }
    }
}
